<!--
 * @Author: fanyaqing
 * @Date: 2021-08-12 10:22:16
 * @LastEditTime: 2021-08-16 09:48:47
 * @LastEditors: fanyaqing
 * @Description: 
 * @FilePath: \supermall\src\views\shopcart\childComponents\CartList.vue
-->
<template>
  <div class="cart-list">
    <cart-list-item v-for="(item, index) in cartList" :key="index" :itemInfo="item">
    </cart-list-item>
  </div>
</template>
<script>
import CartListItem from './CartListItem'
import {mapGetters} from 'vuex';

export default {
  components:{
    CartListItem
  },
  computed:{
    ...mapGetters(['cartList'])
  }
}
</script>
<style scoped>

</style>